const Service = require('egg').Service;

class UserService extends Service {
  async addName(name) {
    const user = `你好,${name}`;
    return user;
  }
  async get() {
    const ctx = this.ctx;
    const results = await ctx.model.UserModel.getData();
    return results;
  }
}

module.exports = UserService;
